//
//  MainWindowController.m
//  MacChallengeOC
//
//  Created by xf-ling on 2017/7/21.
//  Copyright © 2017年 LXF. All rights reserved.
//

#import "MainWindowController.h"

@interface MainWindowController ()

@end

@implementation MainWindowController

- (void)windowDidLoad
{
    [super windowDidLoad];
    
    self.window.backgroundColor = [NSColor yellowColor];
}

- (IBAction)jumpNewWCBtnFunc:(id)sender
{
    _nextWindowController = [[NewWindowController2 alloc] initWithWindowNibName:NSStringFromClass([NewWindowController2 class])];
    
    _nextWindowController.lastWindowController = self;
    
    //显示需要跳转的窗口
    [_nextWindowController.window orderFront:nil];
    
    //关闭当前窗口
    [self.window orderOut:nil];
}






@end
